<?php
 session_start();
 require_once("dbconnect.php");
 $profileid=$_SESSION['user'];

 session_destroy(); 
 header("Location:login.php");
 if($con==true) mysql_close($con);
 #echo "".$_SESSION['fname'];
?>